home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / CHIP Utilities / Zarzadzanie i bezpieczenstwo systemu / MBSA / MBSASetup-EN.msi / Data.Cab / reportdetailsHF.xsl < prev    next >
Extensible Markup Language  |  2004-08-13  |  7KB  |  179 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.     
  4.     <xsl:variable name="CheckID" select="'CheckIDHere'"></xsl:variable>
  5.  
  6.     <xsl:variable name="ScoreLookup">
  7.       <c score="0" url="Graphics/dash.gif" alttext="Check Not Performed"/>
  8.       <c score="1" url="Graphics/excl_red.gif" alttext="Unable to scan"/>
  9.       <c score="2" url="Graphics/x_red.gif" alttext="Missing security update"/>
  10.       <c score="3" url="Graphics/x_gold.gif" alttext="Warning"/>
  11.       <c score="4" url="Graphics/astrx.gif" alttext="Note message"/>
  12.       <c score="5" url="Graphics/chek_grn.gif" alttext="Check passed"/>
  13.       <c score="6" url="Graphics/info.gif" alttext="Additional information"/>
  14.       <c score="7" url="Graphics/info.gif" alttext="Additional information"/>
  15.     </xsl:variable>
  16.     
  17.     <xsl:template match="Col">
  18.         <td valign="top" style="padding-right:5px;">
  19.             <xsl:choose>
  20.                 <xsl:when test="@URL and @URL != '' and @URL != ' '">
  21.                     <A target="_blank" href="{@URL}"><xsl:value-of select="."/></A>
  22.                 </xsl:when>
  23.                 <xsl:otherwise>
  24.                     <xsl:value-of select="."/>
  25.                 </xsl:otherwise>
  26.             </xsl:choose>
  27.  
  28.             <xsl:if test="@REQUIREDNAME">
  29.                 <br/><font size="-1">This update requires
  30.                 <xsl:value-of select="@REQUIREDNAME"/>
  31.                 to be installed first.</font>
  32.             </xsl:if>
  33.         </td>
  34.     </xsl:template>
  35.  
  36.     <xsl:template match="SecScan">
  37.         
  38.             <h1><xsl:value-of select="Check[@ID=$CheckID]/Advice"/></h1>
  39.             <h2>Result Details<br /><br /><xsl:value-of select="Check[@ID=$CheckID]/Detail/@text"/></h2>
  40.             <table id="TableID" width="100%" border="0" cellpadding="0" cellspacing="0" style="border: solid 0px #000000; padding-left: 10px; padding-right: 10px;">
  41.             <tr><td>
  42.             <xsl:choose>
  43.                 <xsl:when test="Check[@ID=$CheckID]">
  44.                     <xsl:choose>
  45.                         <xsl:when test="Check[@ID=$CheckID]/Detail/Row[@Grade='2']">
  46.                             <xsl:choose>
  47.                                 <xsl:when test="$CheckID = 174 or $CheckID = 10174 or $CheckID = 20174">
  48.                                     <span>Updates confirmed as missing are marked with a red X</span><br />
  49.                                 </xsl:when>
  50.                                 <xsl:otherwise>
  51.                                     <span>Security updates confirmed as missing are marked with a red X</span><br />
  52.                                 </xsl:otherwise>
  53.                             </xsl:choose>
  54.                         <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000">
  55.                         <tr class="DetailHeader">
  56.                             <td style="width:40" align="center" valign="middle"><nobr>  Score  </nobr></td>
  57.                             <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col">
  58.                                 <td nowrap="nowrap">
  59.                                     <xsl:value-of select="."/> 
  60.                                 </td>
  61.                             </xsl:for-each>
  62.                         </tr>
  63.                         <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='2']">
  64.                         <tr>
  65.                             <td valign="top" align="center">
  66.                                 <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=2]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=2]/@url}" />        
  67.                             </td>
  68.                             <xsl:apply-templates select="Col" />
  69.                         </tr>
  70.                         </xsl:for-each>
  71.                         </table>
  72.                         <br />
  73.                         </xsl:when>
  74.                     </xsl:choose>
  75.                     
  76.                     <xsl:choose>
  77.                         <xsl:when test="Check[@ID=$CheckID]/Detail/Row[@Grade='3']">
  78.                         <span>Products using a service pack not at the latest version or other warnings are marked with a yellow X</span><br />
  79.                         <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000">
  80.                         <tr class="DetailHeader">
  81.                             <td style="width:40" align="center" valign="middle"><nobr>  Score  </nobr></td>
  82.                             <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col">
  83.                                 <td nowrap="nowrap">
  84.                                     <xsl:value-of select="."/> 
  85.                                 </td>
  86.                             </xsl:for-each>
  87.                         </tr>
  88.                         <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='3']">
  89.                         <tr>
  90.                             <td valign="top" align="center">
  91.                                 <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=3]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=3]/@url}" />        
  92.                             </td>
  93.                             <xsl:apply-templates select="Col" />
  94.                         </tr>
  95.                         </xsl:for-each>
  96.                         </table>
  97.                         <br />
  98.                         </xsl:when>
  99.                     </xsl:choose>
  100.                     
  101.                     <xsl:choose>
  102.                         <xsl:when test="Check[@ID=$CheckID]/Detail/Row[@Grade='4']">
  103.                         <span>Security updates that the tool cannot confirm as installed on the scanned computer are marked with a blue asterisk</span><br />
  104.                         <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000">
  105.                         <tr class="DetailHeader">
  106.                             <td style="width:40" align="center" valign="middle"><nobr>  Score  </nobr></td>
  107.                             <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col">
  108.                                 <td nowrap="nowrap">
  109.                                     <xsl:value-of select="."/> 
  110.                                 </td>
  111.                             </xsl:for-each>
  112.                         </tr>
  113.                         <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='4']">
  114.                         <tr>
  115.                             <td valign="top" align="center">
  116.                                 <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=4]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=4]/@url}" />        
  117.                             </td>
  118.                             <xsl:apply-templates select="Col" />                        
  119.                         </tr>
  120.                         </xsl:for-each>
  121.                         </table>
  122.                         <br />
  123.                         </xsl:when>
  124.                     </xsl:choose>
  125.  
  126.                     <xsl:choose>
  127.                         <xsl:when test="($CheckID=174 or $CheckID=10174 or $CheckID=20174) and Check[@ID=$CheckID]/Detail/Row[@Grade='6']">
  128.                             <span>The following updates are confirmed as missing but need to be installed on the administrative installation point by a system administrator. See KB 832665 for more information.
  129.                             </span><br />
  130.                             <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000">
  131.                             <tr class="DetailHeader">
  132.                                 <td style="width:40" align="center" valign="middle"><nobr>  Score  </nobr></td>
  133.                                 <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col">
  134.                                     <td nowrap="nowrap">
  135.                                         <xsl:value-of select="."/> 
  136.                                     </td>
  137.                                 </xsl:for-each>
  138.                             </tr>
  139.                             <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='6']">
  140.                             <tr>
  141.                                 <td valign="top" align="center">
  142.                                     <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=6]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=6]/@url}" />
  143.                                 </td>
  144.                                 <xsl:apply-templates select="Col" />                        
  145.                             </tr>
  146.                             </xsl:for-each>
  147.                             </table>
  148.                             <br />
  149.                         </xsl:when>
  150.                     </xsl:choose>
  151.             </xsl:when>
  152.             </xsl:choose>
  153.             </td></tr>
  154.             </table>
  155.  
  156.             If a service pack is listed, it is recommended that you install it prior to any other items listed.
  157.  
  158.         <xsl:if test="Check[@ID=$CheckID]/@Note1">
  159.             <p><b>Note 1:</b> <xsl:value-of select="Check[@ID=$CheckID]/@Note1"/></p>
  160.         </xsl:if>
  161.  
  162.         <xsl:if test="Check[@ID=$CheckID]/@Note2">
  163.             <p><b>Note 2:</b> <xsl:value-of select="Check[@ID=$CheckID]/@Note2"/></p>
  164.         </xsl:if>
  165.  
  166.         <xsl:if test="$CheckID = 174">
  167.             <p>
  168.             
  169.             <a href="http://go.microsoft.com/fwlink/?LinkId=19025" target="_blank">Click here</a>
  170.             to read why these results may differ from the Microsoft Office Update web site detection results.
  171.             
  172.             </p>
  173.         </xsl:if>
  174.  
  175.     </xsl:template>
  176.  
  177.         
  178. </xsl:stylesheet>
  179.